/*
 * ProductAvailabilityAction.java
 *
 * Created on June 9, 2002, 9:11 AM
 */

package com.scalar.chiptrack.operations.reports.actions;

import java.util.ArrayList;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.scalar.chiptrack.ChipTrackAction;
import com.scalar.chiptrack.operations.process.dao.FinishedGoodsDAO;

/**
 *
 * @author  Mallikarjun
 * @version 1.0
 */
public class ProductAvailabilityAction extends ChipTrackAction{

    public ActionForward execute (ActionMapping mapping,
                                      ActionForm form,
                                      HttpServletRequest request,
                                      HttpServletResponse response) 
                                      throws Exception {

          	ArrayList mktgPartNumberList = null;
							  
            try{
				 mktgPartNumberList = FinishedGoodsDAO.loadAllFinishedGoods();
				request.setAttribute("mktgPartNumberSelectList",mktgPartNumberList);                
            }catch(Exception e){
                e.printStackTrace();
            }
			

            return(mapping.findForward("productAvailability")) ;
       }

}
